package com.scs.application.modules.base.mapper;

import com.scs.application.modules.base.dto.ReagentTeamDTO;
import com.scs.application.modules.base.entity.ReagentTeam;
import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.base.entity.ReagentTeamUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 试剂组 Mapper 接口
 * </p>
 */
public interface ReagentTeamMapper extends IBaseMapper<ReagentTeam> {

    /**
     * 查询科室人员
     * @return ReagentTeamUser
     */
    List<ReagentTeamUser> selectStaff();

    /**
     * 查询试剂组对应的科室名称
     */
    ReagentTeamDTO getDeptById(String reagentTeamId);

    /**
     * 查询当前用户所在的试剂组
     */
    List<ReagentTeam> getByStaffId(String userId);

    /**
     * 根据hisCode查询科室下的试剂组
     */
    List<ReagentTeamDTO> listByHisCode(@Param("hisCodeList") List<String> hisCodeList);

}
